<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

	<head>
		<base href="<%=request.getContextPath()%>/">
		<title></title>
		<link rel="stylesheet" type="text/css" href="Styles/bootstrap.min.css" />
		<link rel="stylesheet" type="text/css" href="Styles/admin-all.css" />
		<script type="text/javascript" src="Scripts/jquery-1.7.2.js"></script>
	</head>
	<body>
		<div class="alert alert-info">当前位置<b class="tip"></b>绩效管理<b class="tip"></b>员工管理</div>
		<shiro:hasRole name="admin">
			<a class="btn btn-primary" href="check/add">添加员工</a>
			<p/>
		</shiro:hasRole>
		<table class="table table-striped table-bordered table-condensed">
			<thead>
				<tr>
					<th>工号</th>
					<th>姓名</th>
					<th>电话号码</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach items="${list }" var="user">
				<tr>
					<td>${user.number }</td>
					<td>${user.username }</td>
					<td>${user.tel }</td>
					<th>
					<shiro:hasRole name="admin">
					<a href="check/delete/${user.userId }" class="btn btn-primary">删除</a>
					<a href="check/update/${user.userId }" class="btn btn-primary">修改</a>
					</shiro:hasRole>
					</th>
				</tr>
				</c:forEach>
			</tbody>
		</table>
	</body>
</html>

